package hello_rpc

import "net/rpc"

const HelloServiceName = "x/xx/HelloService"
const NETWORK = "tcp"
const ADDRESS = "127.0.0.1:9999"

type IHelloService interface {
	// 只能两个参数，一个是入参，一个返回，通过还要有一个error
	Hello(req string, reply *string) error
}

func RegisterHelloService(s IHelloService) error {
	return rpc.RegisterName(HelloServiceName, s)
}
